<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加栏目</title>
<jquery/>
<js file="__ROOT__/admin/tpl/public/js/category.js"/>
<link type="text/css" rel="stylesheet" href="__ROOT__/admin/tpl/public/style/{$hd.session.style}.css"/>
<css file="__ROOT__/admin/tpl/public/css/common.css"/>
<css file="__ROOT__/admin/tpl/public/css/category.css"/>
</head>
<body>
<div id='addShow' class='comShow'>
	<form action="__CONTROL__/add" method="post">
		<input type="hidden" name="pid" value="<empty value='$hd.get.catid'>0<noempty>{$hd.get.catid}</empty>"/>
		<h1 class='tabNav'>
			<a id="one" href="javascript:;">
				基本内容
			</a>
			<a id="two" href="javascript:;">
				生成静态规则
			</a>
			<a id="three" href="javascript:;">
				模板设置
			</a>
		</h1>
		<div id="tab_one" class='tabBox' style='display:block;'>
        <table class="table2">
            <tr>
                <th>
                    栏目名称：
                </th>
                <td>
                    <input type="text" name="cname" style="width:360px;"/>
                </td>
            </tr>
            <tr>
                <th>
                    目录名称：
                </th>
                <td>
                    <input type="text" name="htmldir" style="width:200px;"/><span class="desc">目录名称必须为英文</span>
                </td>
            </tr>
            <tr>
                <th>
                    跳转url：
                </th>
                <td>
                    <input type="text" name="gourl" style="width:260px;"/>
                </td>
            </tr>
            <tr>
                <th>
                    是否显示：
                </th>
                <td>
                    <input type="radio" name="isshow" value="1" checked="checked"/>是&nbsp;&nbsp;<input type="radio" name="isshow" value="0"/>否
                </td>
            </tr>
            <tr>
                <th>
                    关键字：
                </th>
                <td>
                    <input type="text" name="keywords" style="width:300px;"/>
                </td>
            </tr>
            <tr>
                <th>
                    描述：
                </th>
                <td>
                    <textarea style="height:60px;width:90%" name="descroption">
                    </textarea>
                </td>
            </tr>
        </table>			
		</div>
		<div id="tab_two" class='tabBox'>
			<table class="table2">
                        <tr>
                            <th>栏目生成静态：</th>
                            <td><input type="radio" name="islisthtml" value="1" checked="checked"/>是&nbsp;&nbsp;
                                <input type="radio" name="islisthtml" value="0"/>否</td>
                        </tr>
                        <tr>
                            <th>内容生成静态：</th>
                            <td><input type="radio" name="isarchtml" value="1" checked="checked"/>是&nbsp;&nbsp;
                                <input type="radio" name="isarchtml" value="0"/>否</td>
                        </tr>
                        <tr>
                            <th>栏目页静态规则：</th>
                            <td><input type="text" name="listhtml" style="width:360px;" value="{htmldir}/{page}.html"/>
                                <span class="desc">{htmldir}栏目目录{y}年{m}月{d}日{catid}栏目id{page}页码</span></td>
                        </tr>
                        <tr>
                            <th>内容页静态规则：</th>
                            <td><input type="text" name="archtml" style="width:360px;" value="{htmldir}/{y}{m}{d}/{id}.html"/>
                                <span class="desc">{htmldir}栏目目录{y}年{m}月{d}日{catid}栏目id{page}页码</span></td>
                            </td>
                        </tr>
                    </table>
			
		</div>
					<div id="tab_three" class='tabBox'>	
	
			<table class="table2">
                        <tr>
                            <th>列表页模板：</th>
                            <td>
                                <input type="text" name="listtpl" id="listtpl" style="width:360px;" value="list.html"/>
                                <a class="button2" tpltype="listtpl">选择模板</a>
                            </td>
                        </tr>
                        <tr>
                            <th>内容页模板：</th>
                            <td>
                                <input type="text" name="arctpl" id="arctpl" style="width:360px;" value="arc.html"/>
                                <a class="button2" tpltype="contpl">选择模板</a>
                            </td>
                        </tr>
              </table>
			
		</div>
		<input class='submit' value="添加栏目"  type="submit">
		
		
		

	</form>		
		
</div>			
</body>
</html>